package middleware

import (
	"github.com/gin-gonic/gin"
	"go-programming-tour-book/blog-service/global"
)

func AppInfo() gin.HandlerFunc {
	return func(c *gin.Context) {
		c.Set("write_timeout", global.ServerSetting.WriteTimeout)
		c.Set("app_version", "1.0.0")

		c.Next()
	}
}
